package com.ljj.pojo;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName User
 * @Description TODO
 * @Author Administrator
 * @Date 2022/3/2 16:38
 * @Version 1.0
 */
@Data
@Slf4j
@Table(name="user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    private int id;
    @Column(name="username")
    private String userName;
    private String password;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
}
